package com.itqf.yun.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.itqf.yun.dto.InventoryDto;
import com.itqf.yun.dto.ProductDto;
import com.itqf.yun.mapper.InventoryMapper;
import com.itqf.yun.pojo.Inventory;
import com.itqf.yun.pojo.Product;
import com.itqf.yun.service.InventoryService;
import com.itqf.yun.vo.R;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;



@Service
@MapperScan("com.itqf.yun.mapper")
public class InventoryServiceImpl implements InventoryService {

    @Autowired
    private InventoryMapper inventoryMapper;




    /**
     * 展示
     * @return
     */
    @Override
    public R list() {

        QueryWrapper<Inventory> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("save",0);

        List<Inventory>   inventories = inventoryMapper.selectList(queryWrapper);


        return R.OK("查询成功",inventories);
    }


    public R findlist(InventoryDto inventoryDto) {
        return null;
    }

}
